#ifndef MSGWIDGET_H
#define MSGWIDGET_H

#include <QWidget>
#include <QMouseEvent>
#include <QPainter>
namespace Ui {
class MsgWidget;
}

class MsgWidget : public QWidget {
    Q_OBJECT

public:
    explicit MsgWidget(QWidget* parent = nullptr);
    ~MsgWidget();

    void setHovered(bool hovered);
    void setSelected(bool selected);

protected:
    void enterEvent(QEvent* event) override;
    void leaveEvent(QEvent* event) override;
    void mousePressEvent(QMouseEvent* event) override;
    void paintEvent(QPaintEvent* event) override;

private:
    Ui::MsgWidget *ui;
    bool m_hovered;
    bool m_selected;
};

#endif // MSGWIDGET_H
